let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n84,
                    i =
                    (this && this.__extends) ||
                    ((_n84 = function n(t, e) {
                            return (_n84 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n84(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        }),
                    r =
                    (this && this.__decorate) ||
                    function(t, e, o, n) {
                        var i,
                            r = arguments.length,
                            a =
                            r < 3 ?
                            e :
                            null === n ?
                            (n = Object.getOwnPropertyDescriptor(e, o)) :
                            n;
                        if (
                            'object' ==
                            (typeof Reflect === 'undefined' ?
                                'undefined' :
                                typeof(Reflect)) &&
                            'function' == typeof Reflect.decorate
                        )
                            a = Reflect.decorate(t, e, o, n);
                        else
                            for (var s = t.length - 1; s >= 0; s--) {
                                (i = t[s]) &&
                                (a = (r < 3 ? i(a) : r > 3 ? i(e, o, a) : i(e, o)) || a);
                            }
                        return r > 3 && a && Object.defineProperty(e, o, a), a;
                    };
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.EffectTipsPanel = o.EffectTipsVO = void 0);
                var a = t('UIPanel'),
                    s = t('UIViewRes'),
                    c = t('UILayer'),
                    l = t('UIMrg'),
                    u = cc._decorator,
                    h = u.ccclass,
                    p =
                    (u.property,
                        (function() {
                            function t(t, e, o, n) {
                                void 0 === e && (e = 128),
                                    void 0 === o && (o = !0),
                                    void 0 === n && (n = cc.Vec2.ZERO),
                                    (this._url = t),
                                    (this._opacity = e),
                                    (this._showContinue = o),
                                    (this._location = n);
                            }
                            return (
                                Object.defineProperty(t.prototype, 'opacity', {
                                    get: function get() {
                                        return this._opacity;
                                    },
                                    enumerable: !1,
                                    configurable: !0
                                }),
                                Object.defineProperty(t.prototype, 'url', {
                                    get: function get() {
                                        return this._url;
                                    },
                                    enumerable: !1,
                                    configurable: !0
                                }),
                                Object.defineProperty(t.prototype, 'showContinue', {
                                    get: function get() {
                                        return this._showContinue;
                                    },
                                    enumerable: !1,
                                    configurable: !0
                                }),
                                Object.defineProperty(t.prototype, 'location', {
                                    get: function get() {
                                        return this._location;
                                    },
                                    enumerable: !1,
                                    configurable: !0
                                }),
                                t
                            );
                        })());
                o.EffectTipsVO = p;
                var f = (function(t) {
                    function e() {
                        return (null !== t && t.apply(this, arguments)) || this;
                    }
                    var o;
                    return (
                        i(e, t),
                        (o = e),
                        (e.prototype.onInit = function() {
                            t.prototype.onInit.call(this),
                                (this._mask = this.view.getChildByName('mask')),
                                (this._root = this.view.getChildByName('root')),
                                (this._txtContinue = this.view.getChildByName('txtContinue'));
                        }),
                        (e.prototype.onShow = function() {
                            t.prototype.onShow.call(this);
                            var e = this.getData();
                            (this._mask.opacity = 0),
                            (this._txtContinue.opacity = 0),
                            e
                                ?
                                (this._root.setPosition(e.location),
                                    this.loadEffect(e.url),
                                    cc
                                    .tween(this._mask)
                                    .to(0.2, {
                                        opacity: e.opacity
                                    })
                                    .start(),
                                    e.showContinue &&
                                    cc
                                    .tween(this._mask)
                                    .delay(0.5)
                                    .to(0.2, {
                                        opacity: 1
                                    })
                                    .start()) :
                                this.delayCall(0.1, function() {
                                    l.UIMrg.close(o);
                                });
                        }),
                        (e.prototype.onClose = function() {
                            t.prototype.onClose.call(this),
                                (this._mask.opacity = 0),
                                (this._txtContinue.opacity = 0),
                                this._root.removeAllChildren(!0);
                        }),
                        (e.prototype.loadEffect = function(t) {
                            var e = this;
                            cc.resources.load(t, cc.Prefab, function(t, o) {
                                if (!t) {
                                    var n = cc.instantiate(o);
                                    e._root.addChild(n);
                                }
                            });
                        }),
                        (e.RES = new s.UIViewRes(
                            'EffectTipsView',
                            'Tips',
                            c.UILayer.TipsLayer
                        )),
                        (o = r([h('EffectTipsPanel')], e))
                    );
                })(a.default);
                (o.EffectTipsPanel = f), console.log("end");
            module.exports =  e.exports;